package com.st.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 用户表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_user")
public class User implements Serializable {
    /**
     * id唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 微信用户名
     */
    @TableField(value = "wx_user_name")
    private String wxUserName;

    /**
     * 微信头像图片
     */
    @TableField(value = "wx_head_img")
    private String wxHeadImg;

    /**
     * 微信性别:0为男,1为女
     */
    @TableField(value = "wx_sex")
    private Integer wxSex;

    /**
     * 微信唯一标识id
     */
    @TableField(value = "wx_open_id")
    private String wxOpenId;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 是否是VIP:0为不是,1为是
     */
    @TableField(value = "vip_flag")
    private Integer vipFlag;

    /**
     * 删除标记:0为未删除,1为已删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**
     * 新建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_WX_USER_NAME = "wx_user_name";

    public static final String COL_WX_HEAD_IMG = "wx_head_img";

    public static final String COL_WX_SEX = "wx_sex";

    public static final String COL_WX_OPEN_ID = "wx_open_id";

    public static final String COL_PHONE = "phone";

    public static final String COL_VIP_FLAG = "vip_flag";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}